<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>首页</title>
    <link rel="stylesheet" href="../../libs/node_modules/bootstrap/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="../../style/wap/index.css">
    <link rel="stylesheet" href="../../style/wap/ask.css">
    <script src="../../libs/jquery-3.2.1.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
    <script src="../../libs/node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
    <script src="../../libs/layer-v3.1.1/layer/layer.js"></script>
    <!--<script src="js/system.js"></script>-->
</head>
<body>
<header>
    <div class="tool-bar">卜咚问问

    </div>
    <div class="pull-ri">
        <img src="../../static/icon-wap/更多.png" alt="">
    </div>
</header>

<nav>
    <a href="index.html">
        <p>
            <span class="home-icon"></span>
        </p>
        <span class="icon-name">首页</span>
    </a>
    <a href="station.html">
        <p>
            <span class="station-icon"></span>
        </p>
        <span class="icon-name">选站</span>
    </a>
    <a href="#"  class="active">
        <p>
            <span class="problem-icon"></span>
        </p>
        <span class="icon-name">问问</span>
    </a>
    <a href="mine.html">
        <p>
            <span class="my-icon"></span>
        </p>
        <span class="icon-name">我的</span>
    </a>
</nav>
<main>
    <div class="content">
        <div class="ask-search">
            <div class="ask-search-input">
                <img src="../../static/icon-wap/搜索d.png" alt="">
                <input type="text">
            </div>
            <div class="ask-search-btn">
                搜索
            </div>
        </div>

        <div class="problem-search-item">
            <div class="problem-search-item-title">成都怎么办电子狗？</div>
            <div class="problem-search-item-prop">
                <span>一品CG：6-1608业主</span>
                <span>发布于：2018-07-09 10:00</span>
            </div>
            <div class="problem-search-item-text">
                王倩告诉记者，她在与店方理论时被人拍了视频，并在网上发布，她对此并不知情。“但从有人把视频没有打马赛克发在网上的那一刻起，这个
                事情就没有回旋的余地了。”
            </div>
            <div class="problem-search-item-option">
                <span>3人回复</span>
                <span>23次浏览</span>
                <span onclick="showTab(this)">回复</span>
            </div>
        </div>
        <div class="problem-search-item">
            <div class="problem-search-item-title">成都怎么办电子狗？</div>
            <div class="problem-search-item-prop">
                <span>一品CG：6-1608业主</span>
                <span>发布于：2018-07-09 10:00</span>
            </div>
            <div class="problem-search-item-text">
                王倩告诉记者，她在与店方理论时被人拍了视频，并在网上发布，她对此并不知情。“但从有人把视频没有打马赛克发在网上的那一刻起，这个
                事情就没有回旋的余地了。”
            </div>
            <div class="problem-search-item-option">
                <span>3人回复</span>
                <span>23次浏览</span>
                <span onclick="showTab(this)">回复</span>
            </div>
        </div>
        <div class="problem-search-item">
            <div class="problem-search-item-title">成都怎么办电子狗？</div>
            <div class="problem-search-item-prop">
                <span>一品CG：6-1608业主</span>
                <span>发布于：2018-07-09 10:00</span>
            </div>
            <div class="problem-search-item-text">
                王倩告诉记者，她在与店方理论时被人拍了视频，并在网上发布，她对此并不知情。“但从有人把视频没有打马赛克发在网上的那一刻起，这个
                事情就没有回旋的余地了。”
            </div>
            <div class="problem-search-item-option">
                <span>3人回复</span>
                <span>23次浏览</span>
                <span onclick="showTab(this)">回复</span>
            </div>
        </div>
        <div class="problem-search-item">
            <div class="problem-search-item-title">成都怎么办电子狗？</div>
            <div class="problem-search-item-prop">
                <span>一品CG：6-1608业主</span>
                <span>发布于：2018-07-09 10:00</span>
            </div>
            <div class="problem-search-item-text">
                王倩告诉记者，她在与店方理论时被人拍了视频，并在网上发布，她对此并不知情。“但从有人把视频没有打马赛克发在网上的那一刻起，这个
                事情就没有回旋的余地了。”
            </div>
            <div class="problem-search-item-option">
                <span>3人回复</span>
                <span>23次浏览</span>
                <span onclick="showTab(this)">回复</span>
            </div>
        </div>
        
    </div>
</main>

<div class="suspension">
    <a class="ball" onclick="to_top()">
        <span><img src="../../static/icon-wap/上.png" alt=""></span>
        <span>返回</span>
        <span>顶部</span>
    </a>
</div>
<script>

    var userAgent = navigator.userAgent.toLowerCase();
    var platform;
    if(userAgent == null || userAgent == ''){
        platform = 'WEB' ;
    }else{
        if(userAgent.indexOf("android") != -1 ){
            platform = 'ANDROID';
//            location.href = "";
        }else if(userAgent.indexOf("ios") != -1 || userAgent.indexOf("iphone") != -1 || userAgent.indexOf("ipad") != -1){
            platform = 'IOS';
//            location.href = "";
        }else if(userAgent.indexOf("windows phone") != -1 ){
            platform = 'WP';
//            location.href = "";
        }else{
            platform = 'WEB' ;
            location.href = "../../views/problem/problem.html";
        }
    }


    function getScrollTop(){
        var scrollTop=0;
        if(document.documentElement&&document.documentElement.scrollTop){
            scrollTop=document.documentElement.scrollTop;
        }else if(document.body){
            scrollTop=document.body.scrollTop;
        }
        return scrollTop;
    }
    $(window).scroll(function () {
        if(getScrollTop()>=100){
            $(".suspension").show();
        }
        else{
            $(".suspension").hide();
        }
    })
    function showTab(obj) {
        window.location.href = 'replay.html'
    }
    function to_top() {
        $(window).scrollTop(0);
    }

</script>
</body>
</html>